namespace Making.Avalonia.WebView.Core.Models;

public class NavigationEventArgs : EventArgs
{
    public Uri Uri { get; }
    public bool IsUserInitiated { get; }
    public bool IsRedirected { get; }
    public bool Cancel { get; set; }

    public NavigationEventArgs(Uri uri, bool isUserInitiated = false, bool isRedirected = false)
    {
        Uri = uri;
        IsUserInitiated = isUserInitiated;
        IsRedirected = isRedirected;
    }
}